package yanchun.vip.springaop.service.impl;

import org.springframework.stereotype.Service;
import yanchun.vip.springaop.service.MathCalculator;

/**
 * @author SuYanchun
 * @since 2025-02-11 13:24
 */
@Service
public class MathCalculatorImpl implements MathCalculator {

    @Override
    public int add(int i, int j) {
        int result = i + j;
        System.out.println("执行add，即将返回");
        return result;
    }
    @Override
    public int sub(int i, int j) {
        int result = i - j;
        System.out.println("执行sub，即将返回");
        return result;
    }
}
